﻿using System;
using System.Collections.Generic;
using System.Text;
using xiaodingmarket_application.ViewModel;

namespace xiaodingmarket_application.Interfaces
{
    public interface IOrderService : IDisposable
    {
        //生成订单
        void Create(OrderViewModel orderViewModel);
        //加载某用户某一状态全部（0_默认全部）
        IEnumerable<OrderViewModel> GetAll(Guid userid ,int kind,int Condition,int who);
        //返回详情
        OrderViewModel GetById(Guid id);
        //更新订单
        void Update(OrderViewModel orderViewModel);
        //发布人或管理员删除
        void Remove(Guid id);

    }
}
